﻿@using Orchard.ContentManagement;

@{
    Script.Require("jQuery").AtHead();
    
    var action = "/Users/Account/Register"; 
}

@Display(Model.Metadata.ChildContent)

@using (Script.Foot())
{
    <script type="text/javascript">
        $(function () {
            if ($("article.widget-registration-widget").length) {
                $("article.widget-registration-widget form").get(0).setAttribute('action', '@action');
            }
        });
    </script>
}